//202102104001魏晓宇
package cn.edu.sdjzu.xg.kcsj.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@ToString
@Setter
@Getter
public class TeacherSign implements Comparable<TeacherSign>, Serializable {
    private Integer id;
    private String no;
    private Course course;
    private String signState;
    private String week;
    private String weekTime;
    private String section;
    private Classroom classroom;
    private Teacher teacher;

    public TeacherSign (int id,String no,Course course,Teacher teacher,String signState,String week,String weekTime,String section,Classroom classroom) {
        this(id,no,signState,week,weekTime,section);
        this.classroom = classroom;
        this.course = course;
        this.teacher = teacher;
    }

    public TeacherSign(Integer id,String no,String signState,String week,String weekTime,String section){
        this.id = id;
        this.no = no;
        this.signState = signState;
        this.week = week;
        this.weekTime = weekTime;
        this.section = section;
    }

    public TeacherSign (String no,Course course,Teacher teacher,String signState,String week,String weekTime,String section,Classroom classroom) {
        this(no,signState,week,weekTime,section);
        this.classroom = classroom;
        this.course = course;
        this.teacher = teacher;
    }

    public TeacherSign(String no,String signState,String week,String weekTime,String section){
        this.no = no;
        this.signState = signState;
        this.week = week;
        this.weekTime = weekTime;
        this.section = section;
    }


    @Override
    public int compareTo(TeacherSign other) {
        return this.no.compareTo(other.no);
    }
}
